package com.ruoyi.project.mgcmanage.mapper;

import com.ruoyi.project.mgcmanage.domain.MedFactory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MedFactoryMapper {

    //查询厂家功能
    List<MedFactory> selectAll(MedFactory medFactory);

    //添加厂家功能
    int insert(MedFactory medFactory);

    //查询厂家，做数据回显
    MedFactory selectOne(int id);

    //修改厂家功能
    int update(MedFactory medFactory);

    //删除厂家功能
    int delete(@Param("facIds")int[] facIds);

    //查询厂家下拉框
    List<MedFactory> selectByName();
}
